﻿using InseSoft.Infraestructure;
using InseSoft.ViewModels;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace InseSoft.Tests.Unit.Infraestructure
{
    [TestClass]
    public class DIFactoryTest
    {
        [TestMethod]
        public void Get_KernelNull_KernelInstantiated()
        {
            DIFactory.Kernel = null;
            var sessionInstance = DIFactory.Get<ApplicationSession>();
            
            Assert.IsNotNull(DIFactory.Kernel);
            Assert.IsNotNull(sessionInstance);
        }
    }
}
